<?php get_header(); ?>

<?php get_sidebar(); ?>

<div id="right" class="t-blog search">

<?php get_template_part('header-blog'); // header-blog.php ?>

	<h1 id="page-heading"><?php bandit::lang('search_heading',__('Search Results','creatic')); ?></h1>
	<p id="page-description"><?php printf(bandit::get_lang('search_text',__('You searched for <strong>%s</strong> and we found the following...','creatic')),esc_attr($_GET['s'])); ?></p>

	<div id="content">
		<div id="content-inner">
			<div id="content-pad">
				<div id="masonry">

				<?php if(!have_posts()): ?>
					<div class="grid-4" id="no-result">
						<p><strong><?php bandit::lang('search_noresults_title',__('Absolutely nothing','creatic')); ?></strong></p>
						<p><?php bandit::lang('search_noresults_text',__('The good news is you can try again.','creatic')); ?></p>
					</div>
				<?php endif; ?>

				<?php while(have_posts()): the_post(); ?>
					<article id="entry-<?php the_ID(); ?>" <?php post_class('block entry grid-3'); ?>>

						<?php if(get_post_format()) { get_template_part('post-formats'); } // POST FORMATS TEMPLATE ?>

						<header>
							<h2 class="entry-title">
								<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
							</h2>
						</header>

						<div class="text">
							<?php the_excerpt(); ?>
						</div>

						<ul class="entry-meta clearfix">
							<li class="published"><a href="<?php the_permalink(); ?>" title="Permalink for: <?php the_title(); ?>"><i class="icon"></i><?php bandit::time_ago(); ?></a></li>
							<!--<li class="author"><i class="icon"></i><?php bandit::lang('post_meta_by'); ?> <?php the_author(); ?></li>-->
							<li class="like-count"><a id="like-<?php the_ID(); ?>" href="#" <?php bandit::liked_class(); ?>>
								<i class="icon"></i><?php bandit::post_liked_count(); ?></a></li>
							<li class="comment-count"><a href="<?php comments_link(); ?>"><i class="icon"></i> <?php comments_number('0','1','%'); ?> </a></li>
						</ul>
					</article>
					<?php endwhile;?>			
				</div><!--end masonry-->
				<div class="clear"></div>
			</div><!--end content-pad-->
			<?php get_template_part('nav-posts'); // nav-posts.php ?>
			<?php if(bandit::get_option('footer_widgets')) { get_template_part('footer-widgets'); } // footer-widgets.php ?>
		</div><!--end content-inner-->
		<div class="clear"></div>
	</div><!--end content-->
	
</div><!--end right-->

<?php get_footer(); ?>